package com.dyjch.mly.service.imp;

import com.dyjch.mly.entity.GoodsBound;
import com.dyjch.mly.mapper.GoodsInBoundMapper;
import com.dyjch.mly.service.GoodsInBoundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsInBoundServiceImp implements GoodsInBoundService {

    @Autowired
    GoodsInBoundMapper goodsInBoundMapper;

    @Override
    public GoodsBound queryGoodsInBoundByName(String name) {
        return goodsInBoundMapper.queryGoodsInBoundByName(name);
    }

    @Override
    public List<GoodsBound> getAllMessage() {
        return goodsInBoundMapper.getAllMessage();
    }

    @Override
    public void addGoodsInBoundMessage(GoodsBound goodsBound) {
        goodsInBoundMapper.addGoodsInBoundMessage(goodsBound);
    }
}
